SELECT  COUNT(*) AS rowsQty FROM customer WHERE customer.deleted = '0'  AND (customer.code LIKE LOWER('%%') OR customer.name LIKE LOWER('%%') ) ;